package by.averianov.discounta.services;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import org.springframework.transaction.annotation.Transactional;

import by.averianov.discounta.datamodel.PriceBook;

public interface EconomistService {

    @Transactional
    void removePriceBook(Long id);

    PriceBook getPriceBookById(Long id);

	List<PriceBook> getAllPriceBook(SingularAttribute<PriceBook, ?> attr, boolean ascending, int startRecord, int pageSize);

	@Transactional
	void removeAllPriceBook();

	@Transactional
	void saveOrUpdatePriceBook(PriceBook priceBook);

	Long getPriceBookCount();
}
